package sgd.tp2.api.cmdline;

import com.beust.jcommander.IStringConverter;

public class SendingIntervalConverter implements IStringConverter<Integer> {

	@Override
	public Integer convert(String value) {
		int interval = Integer.parseInt(value);
		return (interval < 0 ? 500 : interval);
	}
}
